import request from '../utils/request.js'

export const filterOrders = (userId) => {
  return request({
    method: 'get',
    url: `/filterOrders?userId=${userId}`
  })
}

export const addOrder = (seqNo, userId, movieId) => {
  return request({
    method: 'post',
    url: `/addOrder`,
    data: {
      seqNo, userId, movieId
    }
  })
}

export const delOrder = (orderId) => {
  return request({
    method: 'get',
    url: `/delOrder?orderId=${orderId}`
  })
}
